<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>
// +----------------------------------------------------------------------
namespace Upsanddowns\Controller;
//use Think\Controller;
/**
 * 前台首页控制器
 * 主要获取首页聚合数据
 */
class GuideController extends BaseController {
	
	// 猜涨跌首页
	public function index() {
       
        $cur_activity=M('rose_activity')->where("status=1")->order('periods_start_time desc')->find();
        $no = $cur_activity['periods'];
        $startDate = date('m月d日',$cur_activity['periods_start_time']);
        $endDate = date('m月d日',$cur_activity['periods_end_time']);
        $openDate = date('m月d日',$cur_activity['periods_end_time']);
        $this->assign('no',$no);
        $this->assign('startDate',$startDate);
        $this->assign('endDate',$endDate);
        $this->assign('openDate',$openDate);
        $this->display();
	}

}



